// preparing language file
var aLangKeys=new Array();
aLangKeys['en']=new Array();

aLangKeys['en']['username']='Usernames';
aLangKeys['en']['password']='Password';
aLangKeys['en']['forgotten_password']='Forgot your password?';
aLangKeys['en']['login']='Log in';

$(document).ready(function() {

        // translate all translatable elements
        $('.tr').each(function(i){
		if($(this).is("input"))
		{
			$(this).val(aLangKeys['en'][ $(this).attr('key') ]);
		}
		else
		{
			$(this).prepend(aLangKeys['en'][ $(this).attr('key') ]);
		}
        });

});
